package com.example.librarymanagement.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.sql.Date;
import java.sql.Timestamp;

/**
 * @author ZHB
 */

@Data
@Accessors(chain = true)
public class Reader {

    @ApiModelProperty
    @TableId
    private Integer id;

    @ApiModelProperty(value = "读者姓名")
    private String name;

    @ApiModelProperty(value = "读者性别")
    private Integer sex;

    @ApiModelProperty(value = "所属单位")
    private String affiliatedUnit;

    @ApiModelProperty(value = "创建日期")
    private Timestamp createTime;

    @ApiModelProperty(value = "身份证号")
    private String idCard;

    @ApiModelProperty(value = "出生日期")
    private Timestamp birthday;

    @ApiModelProperty(value = "借阅数量")
    private Integer borrowCount;

    @ApiModelProperty(value = "已归还数量")
    private Integer returnCount;
}
